package com.ecr.hub.model.wagon;

import com.ecr.hub.model.AbstractBaseHub;

public class WagonType extends AbstractBaseHub implements Cloneable {

	private static final long serialVersionUID = 1L;

	private String label;
	private String typeAxle;
	private int nbAxle;
	private float diamAxle;
	private float distPivot;
	private float space_axle;
	private float totalLength;
	private float curbWeight;
	private int curveradius;
	private int at100;
	private int bt100;
	private int ct100;
	private boolean trailer;
	
	public WagonType(){
		setTrailer(true);
	}

	// ********************************
	// les getters et les setters.
	// ********************************

	public String getLabel() {
		return label;
	}

	public String getTypeAxle() {
		return typeAxle;
	}

	public int getNbAxle() {
		return nbAxle;
	}

	public float getDiamAxle() {
		return diamAxle;
	}

	public float getDistPivot() {
		return distPivot;
	}

	public float getSpace_axle() {
		return space_axle;
	}

	public float getTotalLength() {
		return totalLength;
	}

	public float getCurbWeight() {
		return curbWeight;
	}

	public int getCurveradius() {
		return curveradius;
	}

	public int getAt100() {
		return at100;
	}

	public int getBt100() {
		return bt100;
	}

	public int getCt100() {
		return ct100;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public void setTypeAxle(String typeAxle) {
		this.typeAxle = typeAxle;
	}

	public void setNbAxle(int nbAxle) {
		this.nbAxle = nbAxle;
	}

	public void setDiamAxle(float diamAxle) {
		this.diamAxle = diamAxle;
	}

	public void setDistPivot(float distPivot) {
		this.distPivot = distPivot;
	}

	public void setSpace_axle(float space_axle) {
		this.space_axle = space_axle;
	}

	public void setTotalLength(float totalLength) {
		this.totalLength = totalLength;
	}

	public void setCurbWeight(float curbWeight) {
		this.curbWeight = curbWeight;
	}

	public void setCurveradius(int curveradius) {
		this.curveradius = curveradius;
	}

	public void setAt100(int at100) {
		this.at100 = at100;
	}

	public void setBt100(int bt100) {
		this.bt100 = bt100;
	}

	public void setCt100(int ct100) {
		this.ct100 = ct100;
	}

	public boolean isTrailer() {
		return trailer;
	}

	public void setTrailer(boolean trailer) {
		this.trailer = trailer;
	}
	
	// **********************
	// Le clone du type.
	// **********************

	public Object clone() {

		WagonType t = null;
		try {
			t = (WagonType) super.clone();
		} catch (CloneNotSupportedException e) {
			// RAS.
		}
		return t;
	}
}
